import {
  Login,
  Home,
  Welcome,
  GoodList,
  AddGood,
  GoodEdit,
  Classify,
  AddSort,
  ClassifyEdit,
  Shops,
  Collection,
  Rights,
  Roles,
  RolesEdit,
  orders,
  PosGoods,
  BuyingCredit,
  SubbranchPrice,
  GoodRecycle,
  // ===============
  // MemCardTypeList,
  // AddMemCardType,
  // MemCardTypeEdit,
  // MemCardStepList,
  // AddMemCardStep,
  // MemCardStepEdit,
  // MemCardList,
  // AddMemCard,
  // EditMemCard,
  // TradeRecord,
  // ScoreDetail,
  goodscatetwo,
  goodslisttwo,
  addgoods,
  weiorderlist,
  seckill,
  addseckill,
  tuan,
  addtuan,
  coupon,
  fafang,
  scoregoods,
  addscoregoods,
  attributetemplate,
  goodsevaluatetwo,
  memberManagement,
  addmember,
  addaddress,
  memberBalanceRecord,
  memberIntegralRecord,
  weituanorderlist,
  setwechat,
  custom,
  replyList,
  source,
  dev,
  template,
  lineshop,
  addlineshop,
  lineshoptime,
  weibasicsetting,
  merchant,
  merchantEdit,
  shop,
  warehouse,
  warehouseAdd,
  warehouseRefund,
  scorerule,
  machine,
  settings,
  settingsAdd,
  carousel,
  carouselEdit,
  common,
  message,
  messageList,
  advertising,
  advertisingEdit,
  refund,
  refundAdd,
  templates,
  templateAdd,
  templateType,
  collection,
  weicommonsetting,
  sharesetting,
  // ---------------------
  MemCardTypeList,
  AddMemCardType,
  MemCardTypeEdit,
  MemCardStepList,
  AddMemCardStep,
  MemCardStepEdit,
  MemCardList,
  AddMemCard,
  EditMemCard,
  TradeRecord,
  ScoreDetail,
  TradingRecord,
  GuidesList,
  AEGuide,
  SettlementDetail,
  GuideDetail,
  GuideStep,
  AEGuideStep,
  CommTotal
  // Rights,
  // Client,
  // AddClient,
} from '@/router/router'
import list from '../../src/router/module/topLine/routerList'
import bottomLine from '../../src/router/module/bottomLine/routerList'
export const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    component: Login,
    name: 'login'
  },
  {
    path: '/home',
    component: Home,
    redirect: '/welcome',
    name: 'home',
    meta: {
      requireAuth: true
    },
    children: [
      {
        path: '/welcome',
        component: Welcome,
        meta: {
          requireAuth: true
        },
        name: 'welcome'
      },
      {
        path: '/goods',
        component: GoodList,
        meta: { requireAuth: true, title: '商品列表' },
        name: 'goods'
      },
      {
        path: '/addgood',
        name: 'addgood',
        component: AddGood,
        meta: {
          requireAuth: true
        }
      },
      {
        path: '/categories',
        component: Classify,
        meta: {
          requireAuth: true,
          title: '商品分类'
        },
        name: 'categories'
      },
      {
        path: '/addsort',
        component: AddSort,
        meta: {
          requireAuth: true,
          title: '新增商品'
        },
        name: 'addsort'
      },
      {
        path: '/settings',
        component: settings,
        meta: {
          requireAuth: true,
          title: '店铺管理'
        },
        name: 'settings'
      },
      {
        path: '/classifyedit',
        component: ClassifyEdit,
        meta: {
          requireAuth: true
        },
        name: 'classifyedit'
      },
      {
        path: '/rights',
        component: Rights,
        meta: {
          requireAuth: true
        },
        name: 'rights'
      },
      {
        path: '/roles',
        component: Roles,
        meta: {
          requireAuth: true
        },
        name: 'roles'
      },
      {
        path: '/rolesedit',
        component: RolesEdit,
        meta: {
          requireAuth: true
        },
        name: 'rolesedit'
      },
      {
        path: '/orders',
        component: orders,
        meta: {
          requireAuth: true,
          title: '订单列表'
        },
        name: 'orders'
      },
      {
        path: '/goodscatetwo',
        component: goodscatetwo,
        meta: {
          requireAuth: true,
          title: '商品分类'
        },
        name: 'goodscatetwo'
      }, {
        path: '/goodslisttwo',
        component: goodslisttwo,
        meta: {
          requireAuth: true,
          title: '商品列表'
        },
        name: 'goodslisttwo'
      }, {
        path: '/GoodEdit',
        component: GoodEdit,
        meta: {
          requireAuth: true,
          title: '商品修改'
        },
        name: 'GoodEdit'
      }, {
        path: '/addgoods',
        component: addgoods,
        meta: {
          requireAuth: true,
          title: '商品添加'
        },
        name: 'addgoods'
      }, {
        path: '/weiorderlist',
        component: weiorderlist,
        meta: {
          requireAuth: true,
          title: '订单列表'
        },
        name: 'weiorderlist'
      }, {
        path: '/seckill',
        component: seckill,
        meta: {
          requireAuth: true,
          title: '秒杀列表'
        },
        name: 'seckill'
      }, {
        path: '/addseckill',
        component: addseckill,
        meta: {
          requireAuth: true,
          title: '添加秒杀'
        },
        name: 'addseckill'
      }, {
        path: '/tuan',
        component: tuan,
        meta: {
          requireAuth: true,
          title: '拼团列表'
        },
        name: 'tuan'
      }, {
        path: '/addtuan',
        component: addtuan,
        meta: {
          requireAuth: true,
          title: '添加拼团'
        },
        name: 'addtuan'
      }, {
        path: '/coupon',
        component: coupon,
        meta: {
          requireAuth: true,
          title: '优惠券列表'
        },
        name: 'coupon'
      }, {
        path: '/prices',
        name: 'prices',
        component: SubbranchPrice,
        meta: {
          requireAuth: true,
          title: '分店价格'
        }
      },
      {
        path: '/recycle',
        name: 'recycle',
        component: GoodRecycle,
        meta: {
          requireAuth: true,
          title: '商品回收站'
        }
      },
      {
        path: '/cash',
        name: 'cash',
        component: PosGoods,
        meta: {
          requireAuth: true,
          title: '收银机商品'
        }
      },
      {
        path: '/fafang',
        name: 'fafang',
        component: fafang,
        meta: {
          requireAuth: true,
          title: '发放优惠券'
        }
      }, {
        path: '/scoregoods',
        name: 'scoregoods',
        component: scoregoods,
        meta: {
          requireAuth: true,
          title: '积分商城'
        }
      },
      {
        path: '/addscoregoods',
        name: 'addscoregoods',
        component: addscoregoods,
        meta: {
          requireAuth: true,
          title: '新增积分商城'
        }
      },
      {
        path: '/attributetemplate',
        name: 'attributetemplate',
        component: attributetemplate,
        meta: {
          requireAuth: true,
          title: '属性模板'
        }
      }, {
        path: '/goodsevaluatetwo',
        name: 'goodsevaluatetwo',
        component: goodsevaluatetwo,
        meta: {
          requireAuth: true,
          title: '商品评价'
        }
      }, {
        path: '/memberManagement',
        name: 'memberManagement',
        component: memberManagement,
        meta: {
          requireAuth: true,
          title: '会员卡管理'
        }
      }, {
        path: '/addmember',
        name: 'addmember',
        component: addmember,
        meta: {
          requireAuth: true,
          title: '会员卡编辑'
        }
      }, {
        path: '/addaddress',
        name: 'addaddress',
        component: addaddress,
        meta: {
          requireAuth: true,
          title: '会员卡地址'
        }
      }, {
        path: '/memberBalanceRecord',
        name: 'memberBalanceRecord',
        component: memberBalanceRecord,
        meta: {
          requireAuth: true,
          title: '余额记录'
        }
      }, {
        path: '/memberIntegralRecord',
        name: 'memberIntegralRecord',
        component: memberIntegralRecord,
        meta: {
          requireAuth: true,
          title: '积分记录'
        }
      }, {
        path: '/weituanorderlist',
        name: 'weituanorderlist',
        component: weituanorderlist,
        meta: {
          requireAuth: true,
          title: '团购列表'
        }
      },
      {
        path: '/account',
        component: BuyingCredit,
        meta: {
          requireAuth: true,
          title: '挂账列表'
        },
        name: 'account'
      },
      // {
      //   path: '/membercard',
      //   component: MemCardTypeList,
      //   meta: {
      //     requireAuth: true,
      //     title: '会员卡类型'
      //   },
      //   name: 'membercard'
      // },
      // {
      //   path: '/memcardtypeedit',
      //   component: MemCardTypeEdit,
      //   meta: {
      //     requireAuth: true,
      //     title: '会员卡类型编辑'
      //   },
      //   name: 'memcardtypeedit'
      // },
      // {
      //   path: '/addmemcardtype',
      //   component: AddMemCardType,
      //   meta: {
      //     requireAuth: true,
      //     title: '会员卡类型添加'
      //   },
      //   name: 'addmemcardtype'
      // },
      // {
      //   path: '/cardstep',
      //   component: MemCardStepList,
      //   meta: {
      //     requireAuth: true,
      //     title: '会员卡等级列表'
      //   },
      //   name: 'cardstep'
      // },
      // {
      //   path: '/addcardstep',
      //   component: AddMemCardStep,
      //   meta: {
      //     requireAuth: true,
      //     title: '会员卡等级添加'
      //   },
      //   name: 'addcardstep'
      // },
      // {
      //   path: '/cardstepedit',
      //   component: MemCardStepEdit,
      //   meta: {
      //     requireAuth: true,
      //     title: '会员卡等级编辑'
      //   },
      //   name: 'cardstepedit'
      // },
      // {
      //   path: '/cardlist',
      //   component: MemCardList,
      //   meta: {
      //     requireAuth: true,
      //     title: '会员卡列表'
      //   },
      //   name: 'cardlist'
      // },
      // {
      //   path: '/addmemcard',
      //   component: AddMemCard,
      //   meta: {
      //     requireAuth: true,
      //     title: '会员卡添加'
      //   },
      //   name: 'addmemcard'
      // },
      // {
      //   path: '/editmemcard',
      //   component: EditMemCard,
      //   meta: {
      //     requireAuth: true,
      //     title: '会员卡修改'
      //   },
      //   name: 'editmemcard'
      // },
      // {
      //   path: '/traderecord',
      //   component: TradeRecord,
      //   meta: {
      //     requireAuth: true,
      //     title: '会员卡交易记录'
      //   },
      //   name: 'traderecord'
      // },
      // {
      //   path: '/scorerecord',
      //   component: ScoreDetail,
      //   meta: {
      //     requireAuth: true,
      //     title: '会员卡积分记录'
      //   },
      //   name: 'scorerecord'
      // }
      {
        path: '/setwechat',
        component: setwechat,
        meta: {
          requireAuth: true,
          title: '公众号设置'
        },
        name: 'setwechat'
      }, {
        path: '/custom',
        component: custom,
        meta: {
          requireAuth: true,
          title: '自定义菜单'
        },
        name: 'custom'
      }, {
        path: '/replyList',
        component: replyList,
        meta: {
          requireAuth: true,
          title: '自定义菜单'
        },
        name: 'replyList'
      }, {
        path: '/source',
        component: source,
        meta: {
          requireAuth: true,
          title: '素材管理'
        },
        name: 'source'
      }, {
        path: '/dev',
        component: dev,
        meta: {
          requireAuth: true,
          title: '素材分类'
        },
        name: 'dev'
      }, {
        path: '/template',
        component: template,
        meta: {
          requireAuth: true,
          title: '素材分类'
        },
        name: 'template'
      }, {
        path: '/lineshop',
        component: lineshop,
        meta: {
          requireAuth: true,
          title: '收货地址管理'
        },
        name: 'lineshop'
      },
      {
        path: '/addlineshop',
        component: addlineshop,
        meta: {
          requireAuth: true,
          title: '添加收货地址'
        },
        name: 'addlineshop'
      }, {
        path: '/lineshoptime',
        component: lineshoptime,
        meta: {
          requireAuth: true,
          title: '快递自提点设置'
        },
        name: 'lineshoptime'
      }, {
        path: '/weibasicsetting',
        component: weibasicsetting,
        meta: {
          requireAuth: true,
          title: '基本设置'
        },
        name: 'weibasicsetting'
      },
      {
        path: '/weicommonsetting',
        component: weicommonsetting,
        meta: {
          requireAuth: true,
          title: '通用设置'
        },
        name: 'weicommonsetting'
      },
      ...list,
      ...bottomLine,

      // -------------------------------------------------
      {
        path: '/scorerule',
        component: scorerule,
        meta: { requireAuth: true, title: '充值规则' },
        name: 'scorerule'
      },,
      {
        path: '/machine',
        component: machine,
        meta: { requireAuth: true, title: '充值规则' },
        name: 'machine'
      },

      {
        path: '/settingsAdd',
        component: settingsAdd,
        meta: { requireAuth: true, title: '店铺管理' },
        name: 'settingsAdd'
      },
      {
        path: '/carousel',
        component: carousel,
        meta: { requireAuth: true, title: '轮播图' },
        name: 'carousel'
      }, {
        path: '/carouselEdit',
        component: carouselEdit,
        meta: { requireAuth: true, title: '轮播图管理' },
        name: 'carouselEdit'
      }, {
        path: '/common',
        component: common,
        meta: { requireAuth: true, title: '通用设置' },
        name: 'common'
      }, {
        path: '/message',
        component: message,
        meta: { requireAuth: true, title: '短信管理' },
        name: 'message'
      }, {
        path: '/advertising',
        component: advertising,
        meta: { requireAuth: true, title: '广告管理' },
        name: 'advertising'
      }, {
        path: '/advertisingEdit',
        component: advertisingEdit,
        meta: { requireAuth: true, title: '广告设置' },
        name: 'advertisingEdit'
      }, {
        path: '/messageList',
        component: messageList,
        meta: { requireAuth: true, title: '短信管理' },
        name: 'messageList'
      }, {
        path: '/refund',
        component: refund,
        meta: { requireAuth: true, title: '退款管理' },
        name: 'refund'
      }, {
        path: '/refundAdd',
        component: refundAdd,
        meta: { requireAuth: true, title: '新增退款' },
        name: 'refundAdd'
      }, {
        path: '/templates',
        component: templates,
        meta: { requireAuth: true, title: '收款模板' },
        name: 'templates'
      }, {
        path: '/templateAdd',
        component: templateAdd,
        meta: { requireAuth: true, title: '收款设置' },
        name: 'templateAdd'
      }, {
        path: '/templateType',
        component: templateType,
        meta: { requireAuth: true, title: '收款方式' },
        name: 'templateType'
      }, {
        path: '/collection',
        component: collection,
        meta: { requireAuth: true, title: '收款设置' },
        name: 'collection'
      }, {
        path: '/merchant',
        component: merchant,
        meta: { requireAuth: true, title: '加盟商户' },
        name: 'merchant'
      }, {
        path: '/merchantEdit',
        component: merchantEdit,
        meta: { requireAuth: true, title: '商户编辑' },
        name: 'merchantEdit'
      }, {
        path: '/shop',
        component: shop,
        meta: { requireAuth: true, title: '加盟店铺' },
        name: 'shop'
      }, {
        path: '/warehouse',
        component: warehouse,
        meta: { requireAuth: true, title: '加盟仓库' },
        name: 'warehouse'
      }, {
        path: '/warehouseAdd',
        component: warehouseAdd,
        meta: { requireAuth: true, title: '仓库编辑' },
        name: 'warehouseAdd'
      },,
      {
        path: '/warehouseRefund',
        component: warehouseRefund,
        meta: { requireAuth: true, title: '仓库回收' },
        name: 'warehouseRefund'
      }, {
        path: '/sharesetting',
        component: sharesetting,
        meta: { requireAuth: true, title: '分享设置' },
        name: 'sharesetting'
      },
      // ----------------------------------------------
      {
        path: '/membercard',
        component: MemCardTypeList,
        meta: { requireAuth: true, title: '会员卡类型' },
        name: 'membercard'
      },
      {
        path: '/memcardtypeedit',
        component: MemCardTypeEdit,
        meta: { requireAuth: true, title: '会员卡类型编辑' },
        name: 'memcardtypeedit'
      },
      {
        path: '/addmemcardtype',
        component: AddMemCardType,
        meta: { requireAuth: true, title: '会员卡类型添加' },
        name: 'addmemcardtype'
      },
      {
        path: '/cardstep',
        component: MemCardStepList,
        meta: { requireAuth: true, title: '会员卡等级列表' },
        name: 'cardstep'
      },
      {
        path: '/addcardstep',
        component: AddMemCardStep,
        meta: { requireAuth: true, title: '会员卡等级添加' },
        name: 'addcardstep'
      },
      {
        path: '/cardstepedit',
        component: MemCardStepEdit,
        meta: { requireAuth: true, title: '会员卡等级编辑' },
        name: 'cardstepedit'
      },
      {
        path: '/cardlist',
        component: MemCardList,
        meta: { requireAuth: true, title: '会员卡列表' },
        name: 'cardlist'
      },
      {
        path: '/addmemcard',
        component: AddMemCard,
        meta: { requireAuth: true, title: '会员卡添加' },
        name: 'addmemcard'
      },
      {
        path: '/editmemcard',
        component: EditMemCard,
        meta: { requireAuth: true, title: '会员卡修改' },
        name: 'editmemcard'
      },
      {
        path: '/traderecord',
        component: TradeRecord,
        meta: { requireAuth: true, title: '会员卡交易明细' },
        name: 'traderecord'
      },
      {
        path: '/tradingrecord',
        component: TradingRecord,
        meta: { requireAuth: true, title: '会员卡交易记录' },
        name: 'tradingrecord'
      },
      {
        path: '/scorerecord',
        component: ScoreDetail,
        meta: { requireAuth: true, title: '会员卡积分记录' },
        name: 'scorerecord'
      },
      {
        path: '/guides',
        component: GuidesList,
        meta: { requireAuth: true, title: '导购员管理' },
        name: 'guides'
      },
      {
        path: '/aeguide',
        component: AEGuide,
        meta: { requireAuth: true, title: '导购员编辑' },
        name: 'aeguide'
      },
      {
        path: '/settlementdetail',
        component: SettlementDetail,
        meta: { requireAuth: true, title: '结算明细' },
        name: 'settlementdetail'
      },
      {
        path: '/commissiondetail',
        component: GuideDetail,
        meta: { requireAuth: true, title: '提成明细' },
        name: 'commissiondetail'
      },
      {
        path: '/guidestep',
        component: GuideStep,
        meta: { requireAuth: true, title: '导购等级' },
        name: 'guidestep'
      },
      {
        path: '/aeguidestep',
        component: AEGuideStep,
        meta: { requireAuth: true, title: '导购等级编辑' },
        name: 'aeguidestep'
      },
      {
        path: '/commissiontotal',
        component: CommTotal,
        meta: { requireAuth: true, title: '提成统计' },
        name: 'commissiontotal'
      }
      // {
      //   path: '/client',
      //   component: Client,
      //   meta: { requireAuth: true, title: '客户列表' },
      //   name: 'client'
      // },
      // {
      //   path: '/addclient',
      //   component: AddClient,
      //   meta: { requireAuth: true, title: '添加客户' },
      //   name: 'addclient'
      // },

    //
    ]
  }
]
